package net.com.hydroPK.content;



import net.com.hydroPK.Engine;

import net.com.hydroPK.model.Player;



public class HaveItems {

    

public static boolean HaveItems(Player p, int[][] items) {
        
for (int[] item : items) {
            
if (Engine.playerItems.invItemCount(p, item[0]) < item[1]) {
                
p.getActionSender().sendMessage(p, "You don't have the needed items.");
                
return false;
            
}
        
}
        
return true;
    
}

}
